package org.vnl.platform.orm;

import java.io.Serializable;

/**
 * 執行存取指令時的參數定義與實際值
 * 
 * @author Vaughan
 *
 */
public class CommandParameter implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 3684050621993291099L;

    private String name;
    private Object value;
    private ORMTypes type;
    
    public CommandParameter() {
    }
    
    public CommandParameter(Object value) {
        this.value = value;
    }
    
    public CommandParameter(Object value, ORMTypes type) {
        this.value = value;
        this.type = type;
    }
    
    public CommandParameter(String name, Object value) {
        this.name = name;
        this.value = value;
    }
    
    public CommandParameter(String name, Object value, ORMTypes type) {
        this.name = name;
        this.value = value;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public ORMTypes getType() {
        return type;
    }

    public void setType(ORMTypes type) {
        this.type = type;
    }
}
